package com.vito.dcs.water.device.dao;

import com.vito.dcs.water.device.model.WaterBlenderModel;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @program: WaterBlenderMapper
 * @description: 水稳搅拌机设备设置表持久化接口
 * @author: rongr
 * @create: 2019/04/10
 */
public interface WaterBlenderMapper {

    /**
     * 保存WaterBlenderModel对象
     *
     * @Param: [waterBlenderModel]
     * @return: java.lang.Integer
     */
    public Integer saveWaterBlender(Map<String, Object> map);

    /**
     * 通过主键更新WaterBlenderModel对象
     *
     * @Param: [waterBlenderModel]
     * @return: java.lang.Integer
     */
    public Integer updateWaterBlender(Map<String, Object> map);

    /**
     * 根据Id查询WaterBlenderModel对象
     *
     * @Param: [waterBlenderModel]
     * @return: com.vito.dcs.water.device.model.WaterBlenderModel
     */
    public WaterBlenderModel queryWaterBlenderById(Map<String, Object> map);

    /**
     * 根据stationId分页查询WaterBlenderModel对象
     *
     * @Param: [map]
     * @return: java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     */
    public List<Map<String, Object>> queryBlenderByPage(Map<String, Object> map);

    /**
     * 根据stationId分页查询WaterBlenderModel对象记录条数
     *
     * @Param: [map]
     * @return: java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     */
    public Integer queryBlenderByPageCount(Map<String, Object> map);

    /**
     * 根据stationId查询项目标段及控制机编码
     *
     * @Param: [map]
     * @return: java.util.Map<java.lang.String, java.lang.String>
     */
    public Map<String, String> queryStationCodeById(Map<String, Object> map);

    /**
     * 删除WaterBlenderModel对象
     *
     * @Param: [map]
     * @return: java.lang.Integer
     */
    public Integer delBlenderModel(Map<String, Object> map);
    
    public Integer updateIsCurrent(Map<String,Object> map);
    
    public List<HashMap<String, String>> findBlenderBySectionId(Map<String, String> map);

    /**
     *  根据工艺ID 搅拌机编号查询对应数据是否有存在
     * @param map
     * @return
     */
    public String queryWaterLayerIdMachineNo(Map<String,String> map);
}

